﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UIProformaListGrid.ascx.cs" 

Inherits="UILGestion.VentaAdmin.proforma.UIProformaListGrid" %>


<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>

<asp:Panel runat="server" ID="PanelRecepcion" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">
               
                           
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" ForeColor="blue" CommandArgument="numDocumento" runat="server">Num. PROFORMA</asp:LinkButton>
                </th>
                <th id="Th6" runat="server">
                    <asp:LinkButton ID="LinkButton8" CommandName="Sort" ForeColor="blue" CommandArgument="fechaStr" runat="server"></asp:LinkButton>
                </th>
                  <th id="Th9" runat="server">
                    <asp:LinkButton ID="LinkButton7" CommandName="Sort" ForeColor="blue" CommandArgument="fechaStr" runat="server">FECHA</asp:LinkButton>
                </th>
                 <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton9" CommandName="Sort" ForeColor="blue" CommandArgument="docCliente" runat="server">DNI</asp:LinkButton>
                </th>
                 <th id="Th8" runat="server">
                    <asp:LinkButton ID="LinkButton6" CommandName="Sort" ForeColor="blue" CommandArgument="nombres" runat="server">CLIENTE</asp:LinkButton>
                </th>
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" ForeColor="blue" CommandArgument="telefono" runat="server">TELEFONO</asp:LinkButton>
                </th>
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" ForeColor="blue" CommandArgument="email" runat="server">E MAil</asp:LinkButton>
                </th>
                <th id="Th4" runat="server">
                    <asp:LinkButton ID="LinkButton4" CommandName="Sort" ForeColor="blue" CommandArgument="formatoVentaStr" runat="server">FORMATO VENTA</asp:LinkButton>
                </th>
                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" ForeColor="blue" CommandArgument="ui1Str" runat="server">UI </asp:LinkButton>
                </th>
                <th id="Th10" runat="server">
                    <asp:LinkButton ID="LinkButton10" CommandName="Sort" ForeColor="blue" CommandArgument="vendedor" runat="server">VENDEDOR </asp:LinkButton>
                </th>
               
                <th id="Th88" runat="server">
                    <asp:LinkButton ID="LinkButton88" CommandName="Sort" CommandArgument="ui2Str" runat="server"> </asp:LinkButton>
                </th>
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
           <td width="80px">
               <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numDocumento").ToString()%>'  
                 Target="_self"  ID="Hyperlink1"
                NavigateUrl='<%# "~/VentaAdmin/Proforma/ProformaReadForm.aspx?id=" + 
                DataBinder.Eval (Container.DataItem,"idInternal").ToString()  +
                "&idProyecto=" + DataBinder.Eval (Container.DataItem,"idProyecto").ToString()
                %>' 
               />   
            </td>
            <td>
              <asp:Hyperlink runat= "server" ForeColor="Blue"
                Text="Imprimir"
                 Target="_blank"  
                 ID="Hyperlink2"
                NavigateUrl='<%# "~/rpt/PrintForm.aspx?type=PROFORMAVENTA" + "&id=" + DataBinder.Eval (Container.DataItem,"idInternal").ToString()%>' 
                  
               />  
               </td>
             <td  align="right" width="70px">
                 <%# Eval("fechaStr")%> <br />
            </td>
             <td  align="left"  width="70px" >
                 <%# Eval("docCliente")%> <br />
            </td>
             <td  align="left"  width="200px" >
                 <%# Eval("nombres")%> <br />
            </td>

            <td  align="right"  width="80px" >
                 <%# Eval("telefono")%> <br />
            </td>

            <td  align="right"   width="80px">
                 <%# Eval("email")%> <br />
            </td>

            <td  align="left"  width="200px" >
                 <%# Eval("formatoVentaStr")%> <br />
            </td>
            <td  align="right" width="200px">
                 <%# Eval("ui1Str")%> <br />
            </td>
            <td  align="right" width="200px">
                 <%# Eval("vendedor")%> <br />
            </td>

            
                         
               <td width="45px" align="right">
                

                <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                     CommandArgument='<%# Eval("idInternal")%>' ImageUrl="../../Images/delete.gif" 
                     OnClick="Deleteitem" OnClientClick="return confirm('Usted quiere eliminar?')" />
                                        
                 
            </td>  
          
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Información.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



</asp:Panel>

    
     